document.addEventListener('plusready',function(){
	//console.log("Immersed-UserAgent: "+navigator.userAgent);
},false);
var STATUSBAR_HEIGHT = 0;
var ms=(/Html5Plus\/.+\s\(.*(Immersed\/(\d+\.?\d*).*)\)/gi).exec(navigator.userAgent);
if(ms&&ms.length>=3){
	STATUSBAR_HEIGHT=parseFloat(ms[2]);
}

var headerHeight = STATUSBAR_HEIGHT+44;
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML="#header{height:"+headerHeight+"px;}#main{top:"+headerHeight+"px}";
document.getElementsByTagName('HEAD').item(0).appendChild(style);
